﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<Bastanteo.Dominio.Cliente>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Index
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Index</h2>

    <table>
        <tr>
            <th></th>
            <th>
                CodigoCliente
            </th>
            <th>
                RazonSocial
            </th>
            <th>
                Ruc
            </th>
            <th>
                FechaInicioOperaciones
            </th>
            <th>
                TipoEmpresa
            </th>
            <th>
                CantidadEmpleados
            </th>
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
            <td>
                <%: Html.ActionLink("Editar", "Edit", new { id = item.CodigoCliente })%> |
                <%: Html.ActionLink("Detalles", "Details", new { id = item.CodigoCliente })%> |
                <%: Html.ActionLink("Eliminar", "Delete", new { id = item.CodigoCliente })%>
                <%: Html.ActionLink("Modificar", "Update", new { id = item.CodigoCliente })%>
            </td>
            <td>
                <%: item.CodigoCliente %>
            </td>
            <td>
                <%: item.RazonSocial %>
            </td>
            <td>
                <%: item.Ruc %>
            </td>
            <td>
                <%: String.Format("{0:g}", item.FechaInicioOperaciones) %>
            </td>
            <td>
                <%: item.TipoEmpresa %>
            </td>
            <td>
                <%: item.CantidadEmpleados %>
            </td>
        </tr>
    
    <% } %>

    </table>

    <p>
        <%: Html.ActionLink("Create New", "Create") %>
    </p>

</asp:Content>

